/*
#include <stdio.h>
int main(){
    printf("请输入字符，按""q""结束\n");
    char c;
    while((c=getchar()) != 'q') {
         putchar(c);
    }
    return 0;
}
*/

/*
#include <stdio.h>
#include <math.h>
int main(void)
{         
    printf("请输入三角形边长：\n");
    int a,b,c;
    scanf("%d,%d,%d", &a, &b, &c);
    if (a + b > c && a + c > b && b + c > a) {
        printf("可以构成三角形\n");
        double s = (a + b + c) / 2.0;
        double area = sqrt(s * (s - a) * (s - b) * (s - c));
        printf("三角形面积为：%.2f\n", area);
    } else {
        printf("不能构成三角形\n");
    }
    return 0;
}
*/

/*
#inlcude <stdio.h>
int main(void)
{
    int data1,data2;
    printf("请输入两个整数：\n");
    scanf("%d,%d", &data1, &data2);
    printf("请输入一个运算符（+、-、*、/）：\n");
    char op;
    scanf(" %c", &op);
    switch(op) {
        case '+':
            printf("%d + %d = %d\n", data1, data2, data1 + data2);
            break;
        case '-':
            printf("%d - %d = %d\n", data1, data2, data1 - data2);
            break;
        case '*':
            printf("%d * %d = %d\n", data1, data2, data1 * data2);
            break;
        case '/':
            if (data2 != 0) {
                printf("%d / %d = %.2f\n", data1, data2, (double)data1 / data2);
            } else {
                printf("除数不能为零！\n");
            }
            break;
        default:
            printf("无效\n");
    }
    return 0;
}
*/